import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.3
import QtQml 2.3

Window {
    property var obj
    id: rootWin
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    ListView{
        width: 200
        height: 500
        model:cusListModel
        delegate: ItemDelegate{
            width: parent.width
            height: 30
            //            color: "grey"
            RowLayout{
                anchors.fill: parent
                TextInput{
                    text: item.pcDeviceName
                    onEditingFinished: {
                        item.pcDeviceName = text
                    }
                }
                Rectangle{
                    Layout.preferredHeight: 10
                    Layout.preferredWidth: 1
                }

                TextInput{
                    text: printerState
                }

                Rectangle{
                    Layout.preferredHeight: 10
                    Layout.preferredWidth: 1
                }

                TextInput{
                    text: item.pcGroupNo
                    onEditingFinished: {
                        item.pcGroupNo = text
                    }
                }
            }

            Component.onCompleted: {
            }
        }
    }
}
